public class Restaurant{
	public static void main (String args[])
	{
		int diners = Integer.parseInt (args[0]);
		int semaphore_counter = diners/2;
		
		System.out.println ("Creating the table for " + diners + " diners");
		Table table= new Table(diners);
		
		Semaphore sem1 = new Semaphore(semaphore_counter,diners);
		
		System.out.println ("Creating the philosophers in the table");
		for (int i= 0; i<diners; i++){
			Philosopher p = new Philosopher(i, table, sem1);
		}
		
		
	}
}
